package com.travel.sight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.common.utils.PageUtils;
import com.travel.sight.entity.CollectionEntity;

import java.util.Map;

/**
 * 
 *
 * @author lxw
 * @email lxw@gmail.com
 * @date 2023-11-01 17:41:24
 */
public interface CollectionService extends IService<CollectionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean isCollection(Integer attractionId, Integer userId);

    void saveCollection(Integer attractionId, Integer userId);

    void deleteCollection(Integer attractionId, Integer userId);

    Integer getCollectionNumByUserId(Integer userId);

    void updateAfterCollection(Integer attractionId, Integer userId, Boolean isCollection);
}

